// 库存管理接口
import request from "@/common/request.js";
const api = {
  product_classify: "/product_classify/",
  product_classifyTree: "/product_classify/tree/",
};

const daClassifyApi = {
  product_classifyTree(params) {
    return request({
      url: api.product_classifyTree,
      method: "get",
      params,
    });
  },
  get_product_classify(params) {
    return request({
      url: api.product_classify,
      method: "get",
      params,
    });
  },

  product_classify_detail(id) {
    return request({
      url: api.product_classify + id,
      method: "get",
    });
  },

  post_product_classify(data) {
    return request({
      url: api.product_classify,
      method: "post",
      data,
    });
  },

  patch_product_classify(data, id) {
    return request({
      url: api.product_classify + id + "/",
      method: "patch",
      data,
    });
  },

  delete_product_classify(id) {
    return request({
      url: api.product_classify + id + "/",
      method: "delete",
    });
  },
};
export default daClassifyApi;
